#include <stdio.h>
#include <string.h>
int main()
{
	int number = 0;
	char name[10] = {0}, xuehao[10] = {0};
	int score = 0, max_score = 0, min_score = 111;
	//用于存储最高和最低的学生数据
	char student[2][30] = {0};

	printf("请输入学生个数: ");
	scanf("%d", &number);

	for(int i = 0; i < number; ++i){
		scanf("%s %s %d", &name, &xuehao, &score);
		printf("get到学生信息， 名称: %s, 学号: %s, 成绩: %d\n", name, xuehao, score);
		if(score < min_score){
			min_score = score;
			sprintf(student[1], "%s %s", name, xuehao);
		}
		if(score > max_score){
			max_score = score;
			sprintf(student[0], "%s %s", name, xuehao);
		}
	}
	printf("%s\n%s\n", student[0], student[1]);
	return 0;
}
